package com.ld.admin.util.daliySentence.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import lombok.Data;

@Data
public class DaliySentenceSet {
    private boolean enable = true; // 是否启用
    private List<String> allKeys; // 启用类型
    private Map<String, Boolean> checkedMap;

    public List<String> getSelectKey() {
        List<String> keys = new ArrayList<>();
        checkedMap.keySet().forEach(key -> {
            if (checkedMap.get(key)) {
                keys.add(key);
            }
        });
        return keys;
    }

}
